﻿namespace MSSqlSchemaDoc.Core.DataStructures
{
    using System;
    using System.Xml.Serialization;

    /// <summary>
    /// Represents a synonym.
    /// </summary>
    [Serializable()]
    public class Synonym : DataStructureObjectBase
    {
        /// <summary>
        /// Gets the Synonym object type string.
        /// </summary>
        public override DataStructureObjectType ObjectType
        {
            get
            {
                return DataStructureObjectType.Synonym;
            }
        }

        /// <summary>
        /// Gets or sets the name of the base object to which the synonym refers.
        /// </summary>
        [XmlElement()]
        public string BaseObjectName { get; set; }
    }
}
